package com.training.action.xixiaoming;

import java.util.List;

import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;
import com.training.service.xixiaoming.deptService;
import com.training.service.xixiaoming.empService;

public class showAddMotorAction {
	
	private deptService deptser;
	private empService empser;
	
	private List<UDept> deptlist;
	private List<UUser> emplist;
	public String execute() {
		deptlist=deptser.getAllDept();
		emplist=empser.getAllEmp();
		return "success";
	}

	public deptService getDeptser() {
		return deptser;
	}

	public void setDeptser(deptService deptser) {
		this.deptser = deptser;
	}

	public empService getEmpser() {
		return empser;
	}

	public void setEmpser(empService empser) {
		this.empser = empser;
	}

	public List<UDept> getDeptlist() {
		return deptlist;
	}

	public void setDeptlist(List<UDept> deptlist) {
		this.deptlist = deptlist;
	}

	public List<UUser> getEmplist() {
		return emplist;
	}

	public void setEmplist(List<UUser> emplist) {
		this.emplist = emplist;
	}

	
}
